package top.lshaci.learning.framework.swagger;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Swagger2DocApplication
 *
 * @author lshaci
 * @since 1.0.0
 */
@EnableSwagger2Doc
@SpringBootApplication
public class Swagger2DocApplication {

    public static void main(String[] args) {
        JSON.DEFAULT_PARSER_FEATURE |= SerializerFeature.DisableCircularReferenceDetect.getMask();
        SpringApplication.run(Swagger2DocApplication.class, args);
    }
}
